package com.loan.entity;

import java.io.Serializable;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 产品类
 */
@Data
@TableName("product")
public class Product implements Serializable {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    @NotBlank(message = "增加的产品名不能为空")
    private String name;
    //利率
    private BigDecimal rate;
    //最大贷款金额
    private BigDecimal maxMoney;
    //贷款期限(月份)
    private Integer time;

}